//定义登录接口参数类型
interface loginParams {
    username: string,
    password: string
}

//定义登录接口返回数据类型
interface ResponseData{
    code: number,
    message: string,
    ok:boolean
}

interface loginResponseData extends ResponseData  {
    data: string
}

//定义用户接口类型
interface userInfoResponseData extends ResponseData {
    data:{
        routes:string[],
        buttons:string[],
        roles:string[],
        name:string,
        avatar:string
    }
}


export type { loginParams, loginResponseData, userInfoResponseData }